#!/bin/bash
#


df -hT | grep "^/dev" |while read line;do
  usage=$(echo $line |awk '{print $6}' |awk -F% '{print $1'} )
if [ $usage -gt 20 ]; then
  cipan_name=$(echo $line  |awk '{print $1}')
  rongliang_name=$(echo $line  |awk '{print $3}')
  free_name=$(echo $line |awk '{print $5}')
 echo "磁盘名称：$cipan_name,总容量：$rongliang_name,可用容量：$free_name"
fi
done



